<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ArticleNews extends Model
{
    protected $table = 'article_news';//
    
    protected $appends = ['date_txt'];
    
     /**
     * @return mixed
     */
    public function getDateTxtAttribute(){
        return  substr($this->created_at,0,11);
    } 

}
